package viewbuilder

import org.junit.Test

import util.AssertableBuilder

class ZebraTableTest {

    @Test
    void oddRowsAreHighlighted() {

        def expect = new AssertableBuilder()
        expect.tr('class':'highlight')
        expect.tr('class':'')
        expect.tr('class':'highlight')
        expect.tr('class':'')

        expect.replay()
                                   
        new ZebraTable().render(expect, [1,2,3,4])

        expect.verify()
    }

}